/*
 * FileName: BussinessModelServiceImpl.java
 *
 * Company: 
 * Copyright 2011-2012 (C) Ultrapower Software CO., LTD. All Rights Reserved.
 */
package com.jmeurope.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jmeurope.dao.impl.BussinessModelDaoImpl;
import com.jmeurope.model.BussinessModel;
import com.jmeurope.service.BussinessModelService;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author wangwei  leo_java@163.com
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * Dec 25, 2011 5:17:33 PM          wangwei        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Service
public class BussinessModelServiceImpl implements BussinessModelService{
	@Autowired
	private BussinessModelDaoImpl bussinessModelDao;
	@Override
	public List<BussinessModel> getBussinessModelsByUserId(Integer id) throws SQLException {
		return bussinessModelDao.getBussinessModelsByUserId(id);
	//	return null;
	}
	@Override
	public BussinessModel getBussinessModelById(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return bussinessModelDao.find(id);
	}

}
